package com.hxk.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hxk.pojo.User;
import com.hxk.service.UserServie;

@RestController
public class UserController {

	@Autowired
	private UserServie userServie;
	
	@RequestMapping("/consu")
	public List<User> getUsers(){
		return this.userServie.getUsers();
	}
}
